import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/web-api/api/investigationTask',
    method: 'get',
    params: query
  })
}

export function add(data) {
  return request({
    url: '/web-api/api/investigationTask',
    method: 'post',
    data
  })
}

export function getById(id) {
  return request({
    url: '/web-api/api/investigationTask/findByCaseId',
    method: 'get',
    params: { caseId: id }
  })
}

export function del(ids) {
  return request({
    url: '/web-api/api/investigationTask/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: '/web-api/api/investigationTask',
    method: 'put',
    data
  })
}

export const downloadUrl = '/web-api/api/investigationTask/download'
